package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.Map;

/**
 * ClassName: ReportService
 * Package: com.sky.service
 * Description:
 *
 * @Author 那啥啥
 * @Create 2024/3/22  14:51
 * @Version 1.0
 */
public interface ReportService {
    /**
     * 统计制定时间内的营业额
     * @param begin
     * @param end
     * @return
     */
   public TurnoverReportVO getTurnoverStatistics(LocalDate begin,LocalDate end);

    /**
     * 统计用户信息
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单信息报表
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量top10
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getTop10Statistics(LocalDate begin, LocalDate end);

    /**
     * 导出近三十天报表
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);
}
